<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>PVRTBoneBatch.h</h1><a href="PVRTBoneBatch_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         PVRTBoneBatch.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        PVRTBoneBatch</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     ANSI compatible</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  Utility functions which process vertices.</span>
00014 <span class="comment"></span>
00015 <span class="comment">******************************************************************************/</span>
00016 <span class="preprocessor">#ifndef _PVRTBONEBATCH_H_</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#define _PVRTBONEBATCH_H_</span>
00018 <span class="preprocessor"></span>
00019 <span class="preprocessor">#include "<a class="code" href="PVRTVertex_8h.html">PVRTVertex.h</a>"</span>
00020 
00021 <span class="comment">/*!***************************************************************************</span>
00022 <span class="comment"> Handles a batch of bones</span>
00023 <span class="comment">*****************************************************************************/</span>
00024 <span class="comment">/*!***************************************************************************</span>
00025 <span class="comment">@Class CPVRTBoneBatches</span>
00026 <span class="comment">@Brief A class for processing vertices into bone batches</span>
00027 <span class="comment">*****************************************************************************/</span>
<a name="l00028"></a><a class="code" href="classCPVRTBoneBatches.html">00028</a> <span class="keyword">class </span><a class="code" href="classCPVRTBoneBatches.html">CPVRTBoneBatches</a>
00029 {
00030 <span class="keyword">public</span>:
<a name="l00031"></a><a class="code" href="classCPVRTBoneBatches.html#o0">00031</a>     <span class="keywordtype">int</span> *<a class="code" href="classCPVRTBoneBatches.html#o0">pnBatches</a>;         
<a name="l00032"></a><a class="code" href="classCPVRTBoneBatches.html#o1">00032</a>     <span class="keywordtype">int</span> *<a class="code" href="classCPVRTBoneBatches.html#o1">pnBatchBoneCnt</a>;    
<a name="l00033"></a><a class="code" href="classCPVRTBoneBatches.html#o2">00033</a>     <span class="keywordtype">int</span> *<a class="code" href="classCPVRTBoneBatches.html#o2">pnBatchOffset</a>;     
<a name="l00034"></a><a class="code" href="classCPVRTBoneBatches.html#o3">00034</a>     <span class="keywordtype">int</span> <a class="code" href="classCPVRTBoneBatches.html#o3">nBatchBoneMax</a>;      
<a name="l00035"></a><a class="code" href="classCPVRTBoneBatches.html#o4">00035</a>     <span class="keywordtype">int</span> <a class="code" href="classCPVRTBoneBatches.html#o4">nBatchCnt</a>;          
00037     <span class="comment">/*!***********************************************************************</span>
00038 <span class="comment">     @Function      Create</span>
00039 <span class="comment">     @Output        pnVtxNumOut     vertex count</span>
00040 <span class="comment">     @Output        pVtxOut         Output vertices (program must free() this)</span>
00041 <span class="comment">     @Modified      pui32Idx        index array for triangle list</span>
00042 <span class="comment">     @Input         nVtxNum         vertex count</span>
00043 <span class="comment">     @Input         pVtx            vertices</span>
00044 <span class="comment">     @Input         nStride         Size of a vertex (in bytes)</span>
00045 <span class="comment">     @Input         nOffsetWeight   Offset in bytes to the vertex bone-weights</span>
00046 <span class="comment">     @Input         eTypeWeight     Data type of the vertex bone-weights</span>
00047 <span class="comment">     @Input         nOffsetIdx      Offset in bytes to the vertex bone-indices</span>
00048 <span class="comment">     @Input         eTypeIdx        Data type of the vertex bone-indices</span>
00049 <span class="comment">     @Input         nTriNum         Number of triangles</span>
00050 <span class="comment">     @Input         nBatchBoneMax   Number of bones a batch can reference</span>
00051 <span class="comment">     @Input         nVertexBones    Number of bones affecting each vertex</span>
00052 <span class="comment">     @Returns       PVR_SUCCESS if successful</span>
00053 <span class="comment">     @Description   Fills the bone batch structure</span>
00054 <span class="comment">    *************************************************************************/</span>
00055     <a class="code" href="PVRTError_8h.html#a5">EPVRTError</a> <a class="code" href="classCPVRTBoneBatches.html#a0">Create</a>(
00056         <span class="keywordtype">int</span>                 * <span class="keyword">const</span> pnVtxNumOut,
00057         <span class="keywordtype">char</span>                ** <span class="keyword">const</span> pVtxOut,
00058         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>        * <span class="keyword">const</span> pui32Idx,
00059         <span class="keyword">const</span> <span class="keywordtype">int</span>           nVtxNum,
00060         <span class="keyword">const</span> <span class="keywordtype">char</span>          * <span class="keyword">const</span> pVtx,
00061         <span class="keyword">const</span> <span class="keywordtype">int</span>           nStride,
00062         <span class="keyword">const</span> <span class="keywordtype">int</span>           nOffsetWeight,
00063         <span class="keyword">const</span> EPVRTDataType eTypeWeight,
00064         <span class="keyword">const</span> <span class="keywordtype">int</span>           nOffsetIdx,
00065         <span class="keyword">const</span> EPVRTDataType eTypeIdx,
00066         <span class="keyword">const</span> <span class="keywordtype">int</span>           nTriNum,
00067         <span class="keyword">const</span> <span class="keywordtype">int</span>           nBatchBoneMax,
00068         <span class="keyword">const</span> <span class="keywordtype">int</span>           nVertexBones);
00069 
00070     <span class="comment">/*!***********************************************************************</span>
00071 <span class="comment">     @Function      Release</span>
00072 <span class="comment">     @Description   Destroy the bone batch structure</span>
00073 <span class="comment">    *************************************************************************/</span>
00074     <span class="keywordtype">void</span> <a class="code" href="classCPVRTBoneBatches.html#a1">Release</a>()
00075     {
<a name="l00076"></a><a class="code" href="classCPVRTBoneBatches.html#a1">00076</a>         { <span class="keyword">delete</span> <a class="code" href="classCPVRTBoneBatches.html#o0">pnBatches</a>;         <a class="code" href="classCPVRTBoneBatches.html#o0">pnBatches</a> = 0; }
00077         { <span class="keyword">delete</span> pnBatchBoneCnt;    pnBatchBoneCnt = 0; }
00078         { <span class="keyword">delete</span> <a class="code" href="classCPVRTBoneBatches.html#o2">pnBatchOffset</a>;     <a class="code" href="classCPVRTBoneBatches.html#o2">pnBatchOffset</a> = 0; }
00079         <a class="code" href="classCPVRTBoneBatches.html#o4">nBatchCnt</a> = 0;
00080     }
00081 };
00082 
00083 
00084 <span class="preprocessor">#endif </span><span class="comment">/* _PVRTBONEBATCH_H_ */</span>
00085 
00086 <span class="comment">/*****************************************************************************</span>
00087 <span class="comment"> End of file (PVRTBoneBatch.h)</span>
00088 <span class="comment">*****************************************************************************/</span>
00089 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
